<?php

namespace Admin\Controller;
use Think\Controller;
class ContactController extends Controller{
    public function lists() {
        $Newsmodel=M(contact);
        $data=$Newsmodel->select();
        $this->assign('data',$data);
        $this->display();
    }
    public function delete(){
        $Newsmodel=M(contact);
        $map['id']=I('get.id');
        $Newsmodel->where($map)->delete();
        $this->redirect('Admin/contact/lists');
    }
}
